package com.hmjk.health.util;

import java.util.ArrayList;
import java.util.List;

public abstract class AReminder{
	public static final int NEW_OPEN_OP = 0;
	public static final int NEW_OFF_OP = 1;
	public static final int MODIFY_OPEN_OP = 16;
	public static final int MODIFY_OFF_OP = 17;
	public static final int DELETE_OP = 255;
	
	public String tid;	
	public int devType; //1 tang; 2 ya; 0 all
	public int remind_mode; // 1 app, 2 featurephone ,3 all
	public long update_time;
	public int Index = 0; //0~236
	public int isopen = 0; // 0 open , 1 close
	public int opt; //
	public String tipContent=null;
		  
	
	public AReminder(String id,int devt)
	{
		tid = id;
		devType = devt;
		tipContent = null;
	}
	
	public void setTip(String s)
	{
		tipContent = s;
	}
	
	public String getTip()
	{
		return tipContent;
	}	
	
	public void setState(int s)
	{
		isopen = s;
	}
	
	public int getState()
	{
		return isopen;
	}
	
	public void setIndex(int s)
	{
		Index = s;
	}
	
	public int getIndex()
	{
		return Index;
	}
	
	public static String int2HexStr(int i)
	{
	String strHex= Integer.toHexString(i);
	if(strHex.length()%2!=0)
		return "0"+strHex;
	else
		return strHex;	
	}
	
	public static int hexStr2Int(String s)
	{
		int tmp = Integer.parseInt(s, 16);
		return tmp;
	}
	
}

